//
//  ZCRefreshHeader.m
//  ZCBaiSi
//
//  Created by zc on 16/7/26.
//  Copyright © 2016年 zc. All rights reserved.
//

#import "ZCRefreshHeader.h"

@interface ZCRefreshHeader()
@property (nonatomic, weak) UIImageView *logo;

@end

@implementation ZCRefreshHeader

//初始化
- (void)prepare{
    [super prepare];
    self.lastUpdatedTimeLabel.textColor = [UIColor orangeColor];
    self.stateLabel.textColor = [UIColor orangeColor];
    self.automaticallyChangeAlpha = YES;
    [self setTitle:@"下拉吧" forState:MJRefreshStateIdle];
    [self setTitle:@"松开吧" forState:MJRefreshStatePulling];
    [self setTitle:@"正在加载数据..." forState:MJRefreshStateRefreshing];
    UIImageView *logo = [[UIImageView alloc]init];
    logo.image = [UIImage imageNamed:@"bd_logo1_31bdc765"];
    [self addSubview:logo];
    self.logo = logo;
}

// 摆放子控件
- (void)placeSubviews{
    [super placeSubviews];
    self.logo.zc_width = self.zc_width;
    self.logo.zc_height = 50;
    self.logo.zc_x = 0;
    self.logo.zc_y = -50;
}

@end
